package com.joe.gulishop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.joe.common.utils.PageUtils;
import com.joe.gulishop.product.entity.AttrEntity;
import com.joe.gulishop.product.vo.AttrResponseVO;
import com.joe.gulishop.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author joe
 * @email joe@gmail.com
 * @date 2021-12-03 10:45:56
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId,String attrType);

    AttrResponseVO getAttrInfo(Long attrId);

    void updateAttrById(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Long attrgroupId, Map<String, Object> params);
}

